package com.mlnx.web.base.controller;


import com.mlnx.service.base.properties.MutilDeviceProperties;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.PutMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.bind.annotation.RestController;


@Api(value = "基础参数设置接口", tags = {"基础参数设置接口"})
@RestController
@RequestMapping("base")
public class BaseController extends org.shan.spring.base.BaseController {
    @Autowired
    private MutilDeviceProperties mutilDeviceProperties;

    @ApiOperation(value = "设置心电数据获取延迟", notes = "")
    @PutMapping(value = "/ecg/delay")
    public void setEcgDelay(@RequestParam Integer delay) {
        mutilDeviceProperties.getData().setRequestEcgDelayTime(delay);
    }

}
